<include file="Public:header" />

<load href="__JS__/upload/uploadify.css" />

<load href="__JS__/swfobject.js" />

<script type="text/javascript" src="__JS__/jquery.uploadify.v2.1.4.min.js"></script> 

<div class="content">

<!-----------------------------------------内容开始--------------------------------------------------->

<div class="infoBox">

<form name="form" action="{:U('donews')}" method="post" onsubmit="return checkform();">

<input type="hidden" name="id" value="{$id}" />





<table width="100%" border="0" cellpadding="0" cellspacing="0" id="basic">


<tr>

<td width="11%" class="infoBoxTd">型号：</td>

<td colspan="2"><INPUT name="name" value="{$name}" class="formTitle" size="40"></td>

</tr>

<tr>

<td width="11%" class="infoBoxTd">300户：</td>

<td colspan="2"><INPUT name="sanbai" value="{$sanbai}" class="formTitle" size="40"></td>

</tr>

<tr>

<td width="11%" class="infoBoxTd">500户：</td>

<td colspan="2"><INPUT name="wubai" value="{$wubai}" class="formTitle" size="40"></td>

</tr>

<tr>

<td width="11%" class="infoBoxTd">800户：</td>

<td colspan="2"><INPUT name="babai" value="{$babai}" class="formTitle" size="40"></td>

</tr>

<tr>

<td width="11%" class="infoBoxTd">1000户：</td>

<td colspan="2"><INPUT name="yiqian" value="{$yiqian}" class="formTitle" size="40"></td>

</tr>

<tr>

<tr>

<td width="11%" class="infoBoxTd">简介：</td>

<td colspan="2"><textarea name="jianjie" style="width:400px;height:100px;">{$jianjie}</textarea></td>

</tr>

<tr>

<td width="11%" class="infoBoxTd">排序：</td>

<td colspan="2"><input type="text" name="xu" value="{$xu}" />数字越大，前台显示越靠前

</td>

</tr>

<tr>

<td class="infoBoxTd">图片展示：</td>

<td width="30%"><div class="upimg-box"><div id="fileQueue"></div>

<input id="file_upload" type="file" /><input name="tupian" type="hidden" value="{$tupian}" /></div></td>

<td width="50%"><img id="tupian" src="<neq name='tupian' value=''>{$tupian}<else/>__PUBLIC__/images/nopic.gif</neq>" width="150" height="150"/></td>

</tr>


</table>



<table width="100%" border="0" cellspacing="0" cellpadding="0">

<tr>

<td class="infoBoxTd">&nbsp;</td>

<td align="left"><input type="submit" name="Button1" value="保存" class="formInput01" /></td>

</tr>

</table>

</form>

</div>

<!-----------------------------------------内容结束--------------------------------------------------->

</div>

<script language="javascript">

var k1;

KindEditor.ready(function(K) {

	k1 = K.create('#content', {

		allowFileManager : true

	});

});



//图片上传

$("#file_upload").uploadify({

		'uploader'       : '__JS__/swf/uploadify.swf',

		'script'         : '__JS__/upload/uploadify.php',

		'cancelImg'      : '__JS__/upload/cancel.png',

		'folder'         : '__UPLOAD__/news/{:date("Ym")}',

		'queueID'        : 'fileQueue',

		'sizeLimit'      :	2 * 1000 * 1024,

		'fileExt'        : '*.jpg;*.gif;*.png;', //允许文件上传类型,和fileDesc一起使用.

		'fileDesc'       : '*.jpg;*.gif;*.png;',  //选择文件对话框中的提示文本.

		'auto'           : true,

		'multi'          : false,	

		'onComplete':function(event,queueId,fileObj,response,data){

			$('input[name="tupian"]').val(response);

			$('#tupian').attr('src', response);

		}

});





function checkform(){

	var b = $('input[name="name"]').val();

	if(b == ''){

		ui.error('请输入标题');

		return false;

	}

}

</script>





    



<include file="Public:footer" />

